package edu.sctu.xuping.month05.day20150510;

/**
 * Created by user16 on 2015/5/10.
 */
public class TestOne {
    public int sum = 0;
    public int i;
    public TestTwo testtwo;

    public TestOne(TestTwo testtwo) {

        this.testtwo = testtwo;
    }


    public int getSum() {
        for (i = 0; i < testtwo.number; i++) {
            sum += i;
        }
        return sum;
    }
}
